import Vuex from 'vuex'

const store = new Vuex.Store({
    state: {
        usernumber: '',
        nickname:''
    },
    mutations:{
        // 保存当前菜单栏的路径
        saveUsernumber(state,usernumber){
            state.usernumber = usernumber;
        },
        // 保存当前点击的数据源
        saveNickname(state,nickname){
            state.nickname = nickname;
        },
    }

})

export default store